package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgProductCombinationDetail;
import com.ygqh.baby.po.YgProductCombinationDetailExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface YgProductCombinationDetailMapper {
    int countByExample(YgProductCombinationDetailExample example);

    int deleteByExample(YgProductCombinationDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgProductCombinationDetail record);

    int insertSelective(YgProductCombinationDetail record);

    List<YgProductCombinationDetail> selectByExample(YgProductCombinationDetailExample example);

    YgProductCombinationDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgProductCombinationDetail record, @Param("example") YgProductCombinationDetailExample example);

    int updateByExample(@Param("record") YgProductCombinationDetail record, @Param("example") YgProductCombinationDetailExample example);

    int updateByPrimaryKeySelective(YgProductCombinationDetail record);

    int updateByPrimaryKey(YgProductCombinationDetail record);

    int countSuper(@Param("q") String q);

    List<YgProductCombinationDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

    List<Long> selectProductIds(@Param("productCombinationId") Long productCombinationId);

    int deleteBatch(@Param("productCombinationId") Long productCombinationId, @Param("pIdList") List<Long> pIdList,
                    @Param("updateBy") String updateBy, @Param("updateTime") Date updateTime);

    int addBatch(@Param("detailList") List<YgProductCombinationDetail> detailList);
}



